package com.ps;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Hello world!
 */
@SpringBootApplication
//4、加入这个注解，(1)意思就是启动了一个注册微服务注册到Eureka注册中心或者从注册中心获取到提供者地址
@EnableDiscoveryClient
@MapperScan("com.ps.store")//扫描 Mapper 文件夹
public class ProvideLikeApp {
    public static void main(String[] args) {
        System.out.println("提供者----Hello World!");
        SpringApplication.run(ProvideLikeApp.class,args);
    }
}
